package org.itcast.travel.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PlaceQueryParam {
    private Integer page = 1; //页码
    private Integer pageSize = 10; //每页展示记录数
    private String name; //景点名称
    private String address; //地址                                                             北京八达岭
    private String describe; //描述
    private Integer level;  //星级                                                                     五星级
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate openTime; //景点开放时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate closeTime; //景点结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建景点时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//创建景点时间

}
